package com.yanqingshan.platform.module.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yanqingshan.platform.module.sys.model.domain.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 功能描述:系统角色  Mapper接口
 *
 * @author yanqs
 * @since 2023-05-15
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> pageCustom(IPage<SysRole> page);


    List<String> listAliasByUser(@Param("userId") Long userId);

    List<SysRole> listRolesByUserId(@Param("userId")Long userId);
}
